package com.gusha.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.DynamicInsert;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Entity
@Table(name="sys_shopping")
@NamedQuery(name="SysShopping.findAll", query="SELECT s FROM SysShopping s")
@DynamicInsert
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysShopping implements Serializable{
    private static final long serialVersionUID = 1L;
    
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)    
    private BigInteger id;
    
	@Column(name="commodity_type")
	private BigInteger commodityType;//1:蔬菜种子2:水产幼苗3:家禽幼苗4:水果种子
	
	@Column(name="commodity_name")
	private String commodityName;//商品名称
	
	@Column(name="commodity_img")
	private String commodityImg;//商品图片
	
	@Column(name="commodity_price")
	private BigDecimal commodityPrice;//产品单价
	
	@Column(name="commodity_stock")
	private BigInteger commodityStock;//商品库存
	
	@Column(name="is_check")
	private BigInteger isCheck;//
	
	@Column(name="is_delete")
	private BigInteger isDelete;//
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="add_time")
	private Date addTime;//添加时间

	public BigInteger getId() {
		return id;
	}

	public void setId(BigInteger id) {
		this.id = id;
	}

	public BigInteger getCommodityType() {
		return commodityType;
	}

	public void setCommodityType(BigInteger commodityType) {
		this.commodityType = commodityType;
	}

	public String getCommodityName() {
		return commodityName;
	}

	public void setCommodityName(String commodityName) {
		this.commodityName = commodityName;
	}

	public String getCommodityImg() {
		return commodityImg;
	}

	public void setCommodityImg(String commodityImg) {
		this.commodityImg = commodityImg;
	}

	public BigDecimal getCommodityPrice() {
		return commodityPrice;
	}

	public void setCommodityPrice(BigDecimal commodityPrice) {
		this.commodityPrice = commodityPrice;
	}

	public BigInteger getCommodityStock() {
		return commodityStock;
	}

	public void setCommodityStock(BigInteger commodityStock) {
		this.commodityStock = commodityStock;
	}

	public BigInteger getIsCheck() {
		return isCheck;
	}

	public void setIsCheck(BigInteger isCheck) {
		this.isCheck = isCheck;
	}

	public BigInteger getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(BigInteger isDelete) {
		this.isDelete = isDelete;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
}
